﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>设置新打开的窗口为活动窗口</title>
    <script type="text/javascript">
        function winOpen(){
            var newWin = window.open("12.16 设置新打开的窗口为活动窗口1.html");  // 打开新窗口
            newWin.focus(); // 窗口获得焦点
        }
        
    </script>
</head>
<body>
<input id="Button1" type="button" value="打开" onclick="winOpen()" />
</body>
</html>